﻿using System;
using System.Data.Common;
using System.Data.SqlClient;

using SBPweb.Data.Generic;

#if SQL2005
namespace SBPweb.Data.SQL2005
{

	/// <summary>
	/// This interface describes a factory, wich is able to construct a delete sql command
	/// </summary>
	/// <typeparam name="TIdentityObject"></typeparam>
	public interface IDeleteFactory<TIdentityObject> : IDbToBusinessEntityNameMapper
    {
		/// <summary>
		/// This method constructs the delete sql command
		/// </summary>
		/// <param name="db">SqlDatabase db</param>
		/// <param name="identity">TIdentityObject identity</param>
		/// <returns>SqlCommand</returns>
        SqlCommand ConstructDeleteCommand(SqlDatabase db, TIdentityObject identity);
    }
}
#endif